#include "qpointproperty.h"

#include "qintproperty.h"

#include "../../libs/sharedLib/qeditorlabel.h"

QPointProperty::QPointProperty(SHAREDLIB::QAbstractProperty *parent):
    SHAREDLIB::QAbstractProperty(parent)
{
    m_x=new QIntProperty(this);
    m_x->setAttribute("property_name","x");
    m_x->setAttribute("name","x");

    m_y=new QIntProperty(this);
    m_y->setAttribute("property_name","y");
    m_y->setAttribute("name","y");
}

QWidget* QPointProperty::getEditor()
{
    if(attribute("editabled").toBool())
    {
        m_editor=new SHAREDLIB::QEditorLabel(this);
    }
    return QAbstractProperty::getEditor();
}
